<div id = 'modelx'>
	<div class = 'top'>
		<div class = 'model_list'>
			<?php foreach ($data['ModelTable'] as $table):?>
			<a class = 'table_' data-id = '<?php echo $table['id']?>' href = 'javascript:;' onclick = 'm.tb.f.table(<?php echo $table['id']?>)'><?php echo $table['name']?></a>-
			<a href = 'javascript:;' onclick = 'm.tb.f.edit(<?php echo $table['id']?>)'>修改</a>|
			<?php endforeach;?>
			<hr/>
			<div>
				<a href = 'javascript:;' onclick = 'm.tb.f.add()'>添加楼层</a>
				|
				<a href = 'javascript:;' onclick = 'm.tr.f.add()'>添加排</a>
				|
				<a href = 'javascript:;' onclick = 'm.tb.f.editModel(0)'>排编辑</a>
				<a href = 'javascript:;' onclick = 'm.tb.f.editModel(1)'>座编辑</a>
				|<input id = 'fill_num' value = '20'>
			</div>
			<div class = 'state'>
				
			</div>
		</div>
	</div>
	<div id = 'model_table' class = 'left'></div>
	<div id = 'editor' class = right></div>
	<div style = 'clear:both;'></div>
</div>
<style>
#modelx{width:100%;}
#modelx .top{
	width:100%;
	height:50px;
	border:1px solid #ccc;
}
#modelx .left{
	width:85%;
	overflow:auto;
	border:1px solid #ccc;
}
#modelx .right{
	width:10%;
	border:1px solid #ccc;
}
}
#seat_map{
	position:relative;
}

#modelx .crood {
	position:absolute;
	z-index:0;
	border-collapse:collapse;
}
#modelx .crood tr{
	height:15px;
	margin:0;
}
#modelx .crood th,#modelx .crood td{
	width:15px;
	background:url('seat/img/cellbg.png');
	overflow:hidden;
}
#seat_map .seat{
	background:transparent;
	position: absolute;
	z-index: 1;
}
#model_table #seat_map .seat_tr{
	margin:0;padding:0;
	background:lightblue;
	list-style: none;
	position:absolute;
}
#editor input{width:100px !important;}
.seat_td{
	float:left;
	background:url('seat/img/cellbgTd.png');
	cursor: pointer;
}
.seat_tr_1{height:15px}
.seat_is_1{
color:black;
text-align:center;
background:url('seat/img/cellbgSeat.png');
moz-user-select: -moz-none;
-moz-user-select: none;
-o-user-select:none;
-khtml-user-select:none;
-webkit-user-select:none;
-ms-user-select:none;
user-select:none;}
.submit_btn{
	display:block;
	width:50%;
	height:25px;
	line-height:25px;
	text-align:center;
	border:1px solid #000;
	background:#ccc;
	margin:0 auto;
}
</style>